@import "graphiql/style.css";
@import "@graphiql/plugin-explorer/style.css";
@import "ruru-components/ruru.css";

/**
 * Any CSS included here will be global. The classic template
 * bundles Infima by default. Infima is a CSS framework designed to
 * work well for content-centric websites.
 */

/* You can override the default Infima variables here. */
:root {
  --ifm-color-primary: #29772c;
  --ifm-color-primary-dark: #1e4826;
  --ifm-color-primary-darker: #0d2612;
  --ifm-color-primary-darkest: var(--black-ish);
  --ifm-color-primary-light: var(--grafast-color-caption);
  --ifm-color-primary-lighter: #bce8bd;
  --ifm-color-primary-lightest: #d8f2d9;
  --ifm-code-font-size: 95%;
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.1);
  --stripe-light: rgba(136, 217, 139, 0.3);
  --stripe-dark: rgba(101, 206, 103, 0.4);
}

/* For readability concerns, you should choose a lighter palette in dark mode. */
:root[data-theme="dark"] {
  --ifm-color-primary: #25c2a0;
  --ifm-color-primary-dark: #21af90;
  --ifm-color-primary-darker: #1fa588;
  --ifm-color-primary-darkest: #1a8870;
  --ifm-color-primary-light: #29d5b0;
  --ifm-color-primary-lighter: #32d8b4;
  --ifm-color-primary-lightest: var(--grafast-color-caption);
  --docusaurus-highlighted-code-line-bg: rgba(0, 0, 0, 0.3);
}

div[class^="announcementBar_"] {
  background: repeating-linear-gradient(
    145deg,
    var(--stripe-light),
    var(--stripe-light) 20px,
    var(--stripe-dark) 10px,
    var(--stripe-dark) 40px
  );
  font-weight: bold;
}

figure figcaption {
  font-size: 0.9em;
  font-style: italic;
  text-align: center;
}

figure {
  text-align: center;
}
figure iframe {
  display: inline-block;
}

.mdx-wrapper {
  article > :not(.wide) {
    max-width: 49rem;
    margin-left: auto;
    margin-right: auto;
  }
}

sup a {
  font-weight: bold;
  color: var(--grafast-color-pink);
}

.footnotes {
  color: var(--ifm-color-gray-700);
  font-size: 0.8rem;
  margin-top: 1rem;
  border-top: 2px solid var(--ifm-color-gray-500);
  padding-top: 1rem;
}

.footnotes h2 {
  text-transform: uppercase;
  font-size: 1rem;
}

.footnotes a {
  color: var(--grafast-color-pink);
}

.footnotes a:hover {
  color: var(--ifm-link-hover-color);
  text-decoration: var(--ifm-link-hover-decoration);
}

.footnotes li::marker {
  color: var(--grafast-color-pink);
  font-weight: bold;
}

[data-theme="dark"] .footnotes {
  color: var(--ifm-color-gray-200);
  border-top: 2px solid var(--ifm-color-gray-400);
}

@media screen and (max-width: 995px) {
  .footnotes {
    font-size: 1rem;
  }
}

.flowchart {
  background-color: white;
}
